body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
}

/* header */

header {
    background: #006897;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.2rem;
    color: #bbb;
}

/* header row for name and socials */
.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.header-row h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}
.header-socials {
    display: flex;
    gap: 1.1rem;
}
.header-socials .social-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.18s, filter 0.18s;
    filter: invert(1);
}
.header-socials .social-icon:hover img {
    transform: scale(1.13) rotate(-7deg);
    filter: invert(70%) sepia(20%) saturate(300%) hue-rotate(170deg);
}

/* navigation bar */

nav {
    margin: 2rem 0;
    text-align: center;
    background: #006897;
    padding: 1.1rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    transition: color 0.2s;
    padding: 0.7em 1.4em;
    border-radius: 0.5em;
}

nav a:hover {
    color: #222;
    background: rgba(255,255,255,0.22);
    transition: background 0.2s, color 0.2s;
}

/* nav a:not(:last-child) {
    border-right: 2px solid #fff;
} */

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* intro section */

.intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid #006897;
}

.intro h2 {
    margin: 0.5rem 0 0.2rem;
    font-size: 2rem;
}

.intro p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
}

/* experience section */

.company-logo {
    width: 56px;
    height: 56px;
    vertical-align: middle;
    border-radius: 8px;
    margin-right:1rem;
}

.job-info {
    display: inline-block;
    vertical-align: middle;
}

.company-name {
    /* color: #013a55; */
    font-size: 1.15rem;
    font-weight: 700;
}

.position-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0.2rem 0;
}

.date-and-location {
    color: #555;
    font-size: 0.95rem;
}

/* experience section bullets spacing */
.job ul li {
    margin-bottom: 0.7em;
}

/* projects section */

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    width: 270px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
    background: #fff;
    transition: transform 0.18s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.03);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
    display: block;
}

.project-card:hover img {
    opacity: 0.35;
}

.project-card-title {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
    padding: 0.35em 1.2em;
    border-radius: 0.6em;
    background: rgba(0, 0, 0, 0.38);
    /* semi-transparent dark background for readability */
    display: inline-block;
}

.project-card-desc {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: #fff;
    background: rgba(0, 104, 151, 0.92);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.02rem;
    text-align: center;
    transition: opacity 0.3s;
    z-index: 3;
    pointer-events: none;
    border-radius: 14px;
}

.project-card:hover .project-card-desc {
    opacity: 1;
}

/* education section */

.school {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.school-logo {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    margin-right: 1.5rem;
    object-fit: cover;
}

.school-name {
    font-size: 1.15rem;
}

.degree {
    font-weight: 700;
}

.date-and-location {
    color: #555;
}

.courses {
    margin-top: 0.5rem;
}

.courses-group {
    margin: 0.5rem 0 0 1.2rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.course {
    background: #006897;
    color: #fff;
    padding: 0.22em 0.7em;
    border-radius: 0.5em;
    font-size: 0.92em;
    font-weight: 500;
    display: inline-block;
}

/* footer */

footer {
    text-align: center;
    color: #888;
    padding: 2rem 0 1rem;
    font-size: 0.95rem;
}